<template>
  <div class="html">
    <start-project-header></start-project-header>
    <div class="oneOfThree">
      <span>1 of 3</span>
    </div>
    <div class="main">
      <span>First, let’s you get up set up.</span>
      <span>Pick a project category to connect with a specific community.<br/>You can always update this later.</span>
    </div>
    <div class="select">
      <input class="title" @click="dropCli" :value="title"/>
      <div class="drop" v-show="display">
        <input v-for="(item,key) in dropList" @click="selectCli(key)" :class="{backgroundColor:backgroundColor}" :value="item"/>
      </div>
    </div>
    <div class="nextButton">
      <input type="button" value="Next:Project idea"/>
    </div>

  </div>


</template>

<script>

  import startProjectHeader from '../public/StartProjectHeader'

  export default {
        name: "start-project",
        components:{ startProjectHeader },
        data() {
          return {
              display:false,
              backgroundColor:false,
              title:'Select your category',
              dropList:[ 'Art', 'Comics' ]
          };
        },
        methods:{
            dropCli() {
                this.display = true;
            },
            selectCli(key){
                this.title = this.dropList[key];
                this.display = false;
            }
        }

    }
</script>

<style scoped lang="scss">
  .html{
    width: 100vw;
    padding: 0 75px;
    box-sizing: border-box;
  }
  .oneOfThree{
    display: flex;
    justify-items: left;
    font-size: 20px;
    span{
      display: block;
      width: 53px;
      line-height: 28px;
      color:#2E2E2E;
    }
  }
  .main{
    display: flex;
    width: 700px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    span:nth-child(1){
      margin-top: 122px;
      font-size:36px;
      color:#2E2E2E;
      width:484px;
      height: 50px;
    }
    span:nth-child(2){
      width: 700px;
      height: 66px;
      font-size:24px;
      color:#666666;
      margin: 20px 0;
      text-align: center;
    }
  }
  .select{
    border-bottom: 2px solid #DBDEDD;
    width: 700px;
    margin: 0 auto;
    padding: 30px 0 100px 0;
  }
  .title{
    width: 700px;
    line-height: 64px;
    display: block;
    font-size:24px;
    color:#666666;
    padding-left: 30px;
    box-sizing: border-box;
    box-shadow: 2px 2px 4px 0 #DBDEDD, -2px -2px 4px 0 ;
    background-color: white;
    border-radius: 4px;
    user-select: none;
    outline: none;
    &:focus{
      border: 1px solid #2E2E2E;
    }
  }
  .drop{
    padding: 15px;
    margin: 0 auto;
    background: #FFFFFF;
    box-shadow: 2px 2px 4px 0 #DBDEDD, -2px -2px 4px 0 #DBDEDD;
    border-radius: 4px;
    margin-top: 10px;
    position: absolute;
    z-index: 999;
    border: 1px solid #2E2E2E;
    input{
      display: block;
      width: 670px;
      line-height: 64px;
      padding-left: 30px;
      box-sizing: border-box;
      color: #2E2E2E;
      font-size: 28px;
      outline: none;
      border: none;
      &:focus{
        background-color: #E8E8E8;;
      }
    }
  }
  .backgroundColor{background: #E8E8E8;}
  .nextButton{
    display: flex;
    justify-content: flex-end;
    width: 700px;
    margin: 20px auto;
  }
  .nextButton input{
    display: inline-flex;
    outline: none;
    border: none;
    color:#FFFFFF;
    font-size:18px;
    background: rgba(0,0,0,0.15);
    width:174px;
    height:50px;
    padding-left: 17px;
    box-sizing: border-box;
    border-radius:5px;
    &:active{
      background-color: #333333;
    }
  }

</style>
